﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Mostrar_Recetas.aspx.cs" Inherits="Recetas_Web.Mostrar_Recetas" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   
    <style type="text/css">
        .style1
        {
            width: 1112px;
            text-align: center;
            margin-top: 2px;
            height: 3px;
        }
        .style11
        {
            width: 360px;
        }
        .style12
        {
            width: 367px;
        }
    </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="text-align: center; font-size: 26pt; font-family: Arial;">
        RECETAS</h1>
    <div style="height: 28px; text-align: center">
        <span style="font-size: 20px; font-family: Arial"><strong>Buscar Receta:</strong></span>
        <asp:TextBox ID="txtNombreReceta" runat="server" Height="19px" Width="231px"></asp:TextBox>
        &nbsp;<asp:ImageButton ID="iBtnBuscarReceta" runat="server" Height="24px" 
            ImageAlign="Top" ImageUrl="~/Imagenes/search-boton.gif" 
            onclick="iBtnBuscarReceta_Click" Width="32px" />
    </div>
    <p>
        <span style="font-size: 18px; font-family: Arial"><strong>Buscar Recetas por:</strong></span></p>
    <div style="width: 1111px; height: 66px; margin-top: 0px;">
        <table class="style1" style="width: auto; height: 49px">
            <tr>
                <td class="style11">
                    <span style="font-size: 18px; font-family: Arial"><strong>Categoría:</strong></span>&nbsp;<asp:DropDownList 
                        ID="ddlCategorias" runat="server" Height="20px" Width="178px" 
                        style="margin-left: 10px">
                        <asp:ListItem></asp:ListItem>
                    </asp:DropDownList>
                    <asp:ImageButton ID="iBtnBuscarxCategoria" runat="server" ImageAlign="Top" 
                        ImageUrl="~/Imagenes/search-boton.gif" 
                        onclick="iBtnBuscarxCategoria_Click" style="margin-left: 10px" />
                </td>
                <td class="style12">
                    <span style="font-size: 18px; font-family: Arial"><strong>Dificultad:</strong><asp:DropDownList 
                        ID="ddlDificultad" runat="server" Height="21px" Width="142px" 
                        style="margin-left: 10px">
                        <asp:ListItem></asp:ListItem>
                        <asp:ListItem>Fácil</asp:ListItem>
                        <asp:ListItem>Medio</asp:ListItem>
                        <asp:ListItem>Difícil</asp:ListItem>
                        <asp:ListItem>Chef</asp:ListItem>
                    </asp:DropDownList>
                    <asp:ImageButton ID="iBtnBuscarxDificultad" runat="server" ImageAlign="Top" 
                        ImageUrl="~/Imagenes/search-boton.gif" onclick="iBtnBuscarxDificultad_Click" 
                        style="text-align: center; margin-left: 10px;" />
                    </span></td>
                <td class="style11">
                    <span style="font-size: 18px; font-family: Arial"><strong>Tiempo:</strong></span><asp:DropDownList 
                        ID="ddlTiempo" runat="server" Height="20px" Width="178px" 
                        style="margin-left: 10px">
                        <asp:ListItem></asp:ListItem>
                        <asp:ListItem>3 a 5 min</asp:ListItem>
                        <asp:ListItem>5 a 10 min</asp:ListItem>
                        <asp:ListItem>10 a 15 min</asp:ListItem>
                        <asp:ListItem>15 a 30 min</asp:ListItem>
                        <asp:ListItem>30 a 45 min</asp:ListItem>
                        <asp:ListItem>45 a 60 min</asp:ListItem>
                        <asp:ListItem>Más de 60 min</asp:ListItem>
                    </asp:DropDownList>
                    <asp:ImageButton ID="iBtnBuscarxTiempo" runat="server" ImageAlign="Top" 
                        ImageUrl="~/Imagenes/search-boton.gif" onclick="iBtnBuscarxTiempo_Click" 
                        style="margin-left: 10px" />
                </td>
            </tr>
        </table>
        <span style="font-size: 18px; font-family: Arial">&nbsp;</span></div>
    <asp:Label ID="lblTitulo" runat="server" Font-Size="XX-Large" 
        style="color: #333333; font-weight: 700; font-family: Arial"></asp:Label>
    <br />
    <br />
    <asp:Label ID="lblSubtitulo" runat="server" Font-Size="X-Large" 
        style="font-size: x-large; color: #808080; font-weight: 700; font-family: Arial"></asp:Label>
    <br />
    <br />
    <asp:HyperLink ID="hlAgregarReceta2" runat="server" Font-Underline="True" 
        NavigateUrl="~/Agregar_Recetas.aspx" Visible="False">Agregar Receta</asp:HyperLink>
    <br />
    <br />
    <asp:GridView ID="gvRecetas" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        ForeColor="Black" GridLines="Horizontal" style="text-align: center" 
        AllowPaging="True" DataKeyNames="CodReceta" 
        onselectedindexchanging="gvRecetas_SelectedIndexChanging" 
        onload="gvRecetas_Load">
        <Columns>
            <asp:BoundField />
            <asp:CommandField HeaderText="Ver Receta" InsertText="Mostrar" 
                ShowSelectButton="True" SelectText="Ver" >
            <ControlStyle BorderColor="#3399FF" ForeColor="#3399FF" />
            </asp:CommandField>
        </Columns>
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#242121" />
    </asp:GridView>
    <br />
    <asp:HyperLink ID="hlAgregarReceta" runat="server" Font-Underline="True" 
        NavigateUrl="~/Agregar_Recetas.aspx" Visible="False">Agregar Receta</asp:HyperLink>
    &nbsp;<br />
    <br />
    &nbsp;<asp:HyperLink ID="hlCategorias" runat="server" Font-Underline="True" 
        NavigateUrl="~/Categorias.aspx" Visible="False">Administrar Categoria</asp:HyperLink>
    &nbsp;&nbsp; 
</asp:Content>
